package com.mallcloud.mall.app.controller;

import com.mallcloud.mall.common.core.util.R;
import com.mallcloud.mall.mall.api.entity.MallAppSettingModel;
import com.mallcloud.mall.mall.service.MallAppSettingService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Api(tags = "app界面设置管理")
@RestController
@RequiredArgsConstructor
@RequestMapping("/app/appSetting")
public class AppSettingController {
    private final MallAppSettingService appSettingService;

    @ApiOperation("列表查询")
    @GetMapping("/list")
    public R<List<MallAppSettingModel>> list(MallAppSettingModel dto) {
        return R.ok(appSettingService.listAppSetting(dto));
    }

    @ApiOperation("类型列表")
    @GetMapping("/typeList")
    public R<List<MallAppSettingModel>> typeList(MallAppSettingModel dto) {
        return R.ok(appSettingService.listAppSetting(dto));
    }

}
